import fireManagement from './fireManagement.js'
import emergencyManagement from './emergencyManagement.js'
import specialistManagement from './specialistManagement.js'
import surveillanceManagement from './surveillanceManagement.js'
import systemManagement from './systemManagement.js'
import watchManagement from './watchManagement.js'
import blankRefresh from './blankRefresh.js'

export default new VueRouter({
  routes: [].concat(blankRefresh, fireManagement, emergencyManagement, specialistManagement, surveillanceManagement, systemManagement, watchManagement,[
    {
      path: '/',
      component (resolve) {
        require(['../views/layout'], resolve)
      },
      children: [
        {
          path: '/',
          component(resolve){
            require(['../views/welcome'], resolve)
          }
        },
        {
          path: '/welcome',
          component(resolve){
            require(['../views/welcome'], resolve)
          }
        },
        {
          path: '/learningTask',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/learningTask'], resolve)         //学习任务路由
          }
        },
        {
          path: '/courseLearning',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/courseLearning'], resolve)      //课程学习路由
          }
        },
        {
          path: '/selfTest',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/selfTest'], resolve)             //自我测试路由
          }
        },
        {
          path: '/testTask',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/testTask'], resolve)             //考核任务路由
          }
        },
        {
          path: '/announcement',
          component(resolve){
            require(['../views/fontDeskComponents/communicationOnline/announcement'], resolve)  //公告通知路由
          }
        },
        {
          path: '/onlineBBS',
          component(resolve){
            require(['../views/fontDeskComponents/communicationOnline/onlineBBS'], resolve)       //在线论坛路由
          }
        },
        {
          path: '/poll',
          component(resolve){
            require(['../views/fontDeskComponents/communicationOnline/poll'], resolve)              //调查投票路由
          }
        },
        {
          path: '/enterLearning',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/enterLearning'], resolve)              //进入学习路由
          }
        },
        {
          path: '/startLearning',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/startLearning'], resolve)              //开始学习路由
          }
        },
        {
          path: '/startTesting',
          component(resolve){
            require(['../views/fontDeskComponents/learningCenter/startTesting'], resolve)              //开始考试路由
          }
        },

      ]
    },
  ])
});
